import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import * as moment from 'moment';
moment.locale('zh-cn')

// 导入vant.js文件,让main.js执行里面的代码
import './utils/vant'
// 导入flexible,动态设置rem
import 'amfe-flexible'

// 全局过滤器
Vue.filter('fromNow',value=>{
  return moment(value).fromNow()
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
